import request from '@/utils/request';

/**
 * GET 投资版数据处理
 * @pathParam apiVersion true
 * @queryParam versionId false
 */
export function handleInvestmentUsingGET({ params, data }) {
  return request('report/handleInvestment', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 刷新供货对比报表数据
 * @pathParam apiVersion true
 * @queryParam yearMonth false
 */
export function initSupplyCompareReportUsingGET({ params, data }) {
  return request('report/initSupplyCompareReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 刷新供货确认表
 * @pathParam apiVersion true
 * @queryParam projectId false
 * @queryParam yearMonth false
 */
export function initSupplyConfirmReportUsingGET({ params, data }) {
  return request('report/initSupplyConfirmReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 刷新月度供货明细表
 * @pathParam apiVersion true
 * @queryParam projectId false
 * @queryParam year false
 * @queryParam yearMonth false
 */
export function initSupplyMonthlyDetailReportUsingGET({ params, data }) {
  return request('report/initSupplyMonthlyDetailReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 获取项目父级
 * @pathParam apiVersion true
 * @queryParam projectId false
 */
export function projectParentLevelUsingGET({ params, data }) {
  return request('report/projectParentLevel', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询供货对比报表
 * @pathParam apiVersion true
 * @queryParam deadline false
 */
export function supplyCompareReportUsingGET({ params, data }) {
  return request('report/supplyCompareReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出供货对比报表
 * @pathParam apiVersion true
 * @queryParam deadline false
 */
export function supplyCompareReportExportUsingGET({ params, data }) {
  return request('report/supplyCompareReportExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询月度供货明细表
 * @pathParam apiVersion true
 * @queryParam deadline false
 */
export function supplyMonthlyDetailReportUsingGET({ params, data }) {
  return request('report/supplyMonthlyDetailReport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出月度供货明细表
 * @pathParam apiVersion true
 * @queryParam deadline false
 */
export function supplyMonthlyDetailReportExportUsingGET({ params, data }) {
  return request('report/supplyMonthlyDetailReportExport', {
    method: 'GET',
    params,
    data,
  });
}
